#pragma once
#include <iostream>
#include <string>
using namespace std;

class car
{
private:
	string brand;
	int year;
	double price;

public:

	car();
	car(string b, int y, double p);

	void ReadFromConsole();
	void WriteToConsole();

	string GetBrand() { return brand; }
	void SetBrand(string b) { brand = b; }
	
	int GetYear() { return year; }
	void SetYear(int y) { year = y; }
	
	double GetPrice() { return price; }
	void SerPrice(double p) { price = p; }
	
	

	~car();
};

